package cn.yangliu.constant;

/**
 * the type of serial-port-tool
 *
 * <p>
 * .
 *
 * @author 杨柳
 * @date 2024-05-28
 */
public enum CallbackFunction {

    NOTIFY("notify", "消息通知"),
    CALLBACK_STATUS("callbackStatus", "状态通知"),
    CALLBACK("callback", "回调通知"),
    CALLBACK_SEND_DATA("callbackSendData", "回调发送数据"),
    XLSX_CHANGE_CALLBACK("xlsxChangeCallback", "监听表格发生变化回调")

    ;
    private final String functionName;
    private final String description;

    CallbackFunction(String functionName, String description) {
        this.functionName = functionName;
        this.description = description;
    }

    /**
     * instance member witch named functionName‘s getter
     * <p>
     * for get field witch named functionName’s value
     *
     * @return functionName
     */
    public String getFunctionName() {
        return functionName;
    }

    /**
     * instance member witch named description‘s getter
     * <p>
     * for get field witch named description’s value
     *
     * @return description
     */
    public String getDescription() {
        return description;
    }
}
